package com.shayne.controllers;

import com.shayne.controller.screenmain.SumBtnController;
import com.shayne.log.SMLog;
import com.shayne.views.ScreenMainView;

public class ScreenMainController implements ControllerItf {
	
	private ScreenMainView screenMainView;

	public ScreenMainController(ScreenMainView screenMainView) {
		this.screenMainView = screenMainView;
		initController();
	}

	@Override
	public void initController() {
		
//		register event to btnSum
		screenMainView.getScreenMainRender().getScreenMain().getSumBtn().setOnAction(new SumBtnController(screenMainView));
		SMLog.log("Set action to btnSum completed");
		
	}

	public ScreenMainView getScreenMainView() {
		return screenMainView;
	}

	public void setScreenMainView(ScreenMainView screenMainView) {
		this.screenMainView = screenMainView;
	}
	
	
	
}
